package com.lx.idea.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "es")
public class ESProperties {

    private String connectTimeout="1000";
    private String socketTimeout="30000";
    private String connectionRequestTimeout="5000";
    private String maxConnTotal="100";
    private String maxConnPerRoute="100";
    private String executeTimeout="8";
//    private String username="elastic";
//    private String password="elastic?SZLa5#123";
//    private String httpHost="10.0.12.19:8200,10.0.12.20:8200,10.0.12.21:8200";


    private String username;
    private String password;
    private String httpHost;
}
